﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// News Event Repository Interface
    /// </summary>
    public interface INewsEventRepository
    {
        /// <summary>
        /// Get All News/Event
        /// </summary>
        /// <returns></returns>
        IQueryable<NewsEvent> FindAllNewsEvent();

        /// <summary>
        /// Get News/Event By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<NewsEvent> FindNewsEventByName(string strQuery);

        /// <summary>
        /// Get News/Event By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        NewsEvent GetNewsEventById(int id);

        /// <summary>
        /// Add News/Event in the Database
        /// </summary>
        /// <param name="newsEvent"></param>
        void Add(NewsEvent newsEvent);

        /// <summary>
        /// Delete News/Event from the Database
        /// </summary>
        /// <param name="newsEvent"></param>
        void Delete(NewsEvent newsEvent);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}